package com.han.hotelplat.pojo.systemuser;

import java.util.ArrayList;
import java.util.List;

/**
 * TbRole entity. @author MyEclipse Persistence Tools
 */

public class Role implements java.io.Serializable {

	// Fields

	/**   
		 *   
		 */   
		
	private static final long serialVersionUID = 1L;
	private Integer roleid;
	private String rolename;
	private Short isvalid;

	//用户列表
	private List<Systemuser> users = new ArrayList<Systemuser>();
	//权限列表
	private List<Permission> permissions = new ArrayList<Permission>();
	// Constructors

	/** default constructor */
	public Role() {
	}

	/** full constructor */
	public Role(Integer roleid,String rolename, Short isvalid) {
		this.roleid = roleid;
		this.rolename = rolename;
		this.isvalid = isvalid;
	}

	/** full constructor */
	public Role(String rolename, Short isvalid) {
		this.rolename = rolename;
		this.isvalid = isvalid;
	}
	// Property accessors

	public Integer getRoleid() {
		return this.roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public String getRolename() {
		return this.rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public Short getIsvalid() {
		return this.isvalid;
	}

	public void setIsvalid(Short isvalid) {
		this.isvalid = isvalid;
	}
	public List<Systemuser> getUsers() {
		return users;
	}

	public void setUsers(List<Systemuser> users) {
		this.users = users;
	}

	public List<Permission> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<Permission> permissions) {
		this.permissions = permissions;
	}
}